#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <set>

using namespace std;

bool halvesAreAlike(string str) {
    set<char> s({ 'a','e','i','o','u','A','E','I','O','U' });
    int ret1 = 0, ret2 = 0;
    for (int i = 0; i < str.size() / 2; ++i)
    {
        if (s.find(str[i]) != s.end())
        {
            ret1++;
        }
    }
    for (int i = str.size() / 2; i < s.size(); ++i)
    {
        if (s.find(str[i]) != s.end())
        {
            ret2++;
        }
    }
    return ret1 == ret2;
}

int main()
{
    halvesAreAlike("MerryChristmas");

	return 0;
}